package com.cskaoyan.service;

import com.cskaoyan.bean.GenericData;
import com.cskaoyan.bean.param.BaseParam;
import com.cskaoyan.bean.po.MarketStorage;
import com.cskaoyan.bean.storage.Storage;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;

/**
 * @author LiangRuiJiang
 * @since 2022/06/05  19:24
 */
public interface StorageService {

    /**
     * 在数据库中创建图片数据
     * @param file
     * @param request
     * @return
     */
    MarketStorage createFile(MultipartFile file, HttpServletRequest request);

    /**
     * 存储对象列表的查询
     * @param param
     * @param key
     * @param name
     * @return
     */
    GenericData<MarketStorage> queryStorage(BaseParam param, String key, String name);

    /**
     * 存储对象列表的编辑
     * @param marketStorage
     * @return
     */
    MarketStorage updateStorage(MarketStorage marketStorage);

    void deleteStorage(MarketStorage marketStorage);

//小程序图片
    void storageCreate(MarketStorage marketStorage);
}
